import request from '@/utils/request'
//新增部门
export const addDepartments=data=>request.post('/company/department',data)
//获取所有的部门信息
export const getDepartments=()=>request.get('/company/department')
// 通过id修改部门详情
export const updateDepartments=data=>request.put(`/company/department/${data.id}`,data)
//根据id删除指定部门
export const delDepartments=id=>request.delete(`/company/department/${id}`)
//获取个人部门详情
export const getDepartmentsDetail=id=>request.get(`/company/department/${id}`)



